<template>
  <view class="links-device" v-cloak>
    <view class="device-list">
      <view class="list-item" v-for="(item,idx) in 3" :key="idx">
        <view class="item-tag">A</view>
        <view class="item-info">
          <view class="h2 dot2">AX09090-000090000111111SDDFFGGHH12121210</view>
          <view class="info-status">
            <span class="inline">离线</span>
          </view>
          <view class="info-p">最近链接时间:2023.11.13 10:00:12</view>
          <view class="info-handle">
            <view class="button">删除</view>
            <view class="button">修改名称</view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        
      };
    }
  }
</script>

<style lang="less" scoped>
.links-device{
  min-height: 100vh;
  background: var(--page-bg);
  padding: 20rpx 24rpx;
  box-sizing: border-box;
  .device-list{
    .list-item{
      padding: 24rpx;
      border-radius: 20rpx;
      background: #fff;
      display: flex;
      align-items: flex-start;
      .item-tag{
        width: 108rpx;
        line-height: 108rpx;
        text-align: center;
        color: var(--theme-color);
        border:2rpx solid var(--theme-color);
        background: var(--theme-color-10);
        font-weight: bold;
        font-size: 48rpx;
        margin-right: 24rpx;
        border-radius: 20rpx;
      }
      .item-info{
        flex: 1;
        font-size: 24rpx;
        .h2{
          font-size: 30rpx;
          font-weight: bold;
          color: var(--title-color);
        }
        .info-status{
          margin: 12rpx 0;
          .disabled{
            line-height: 1;
            padding: 8rpx 14rpx;
            border-radius: 8rpx;
            background: var(--page-bg);
            color: var(--sub-title);
          }
          .inline{
            line-height: 1;
            padding: 8rpx 14rpx;
            border-radius: 8rpx;
            background: var(--theme-color-10);
            color: var(--theme-color);
          }
        }
        .info-p{
          color: #6D6D6D;
        }
        .info-handle{
          margin-top: 32rpx;
          display: flex;
          align-items: center;
          .button{
            margin-left: auto;
            line-height: 56rpx;
            width: 142rpx;
            text-align: center;
            font-size: 24rpx;
            color: #6D6D6D;
            border-radius: 8rpx;
            border: 2rpx solid var(--border-color);
            &:last-child{
              margin-left: 24rpx;
            }
          }
        }
      }
    }
  }
}
</style>
